<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0;}
        #menu{width: 300px;height: 300px;border: 1px black solid;perspective: 500px;}
        #list{width: 200px;height: 50px;background: red;margin: 30px auto;transform: rotateY(-40deg);transform-style: preserve-3d;}
        #list div{width: 100%;height: 100%;background: red;color: white;text-align: center;
        line-height: 50px;transform-origin: top;margin-top: 10px;transform: rotateX(180deg);transform-style: preserve-3d;}
        #list > div{position: relative;top: 50px;}
    </style>
</head>
<body>
    <button id="btn">展开</button>
    <div id="menu">
        <div id="list">
            <div>第一项
                <div>第二项
                    <div>第三项
                        <div>第四项
                            <div>第五项</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script>
    var btn = document.getElementById('btn');
    var list = document.getElementById('list');
    var listItem = document.getElementsByTagName('div');

    btn.onclick = function(){
        for(var i=0;i<listItem.length;i++){
            listItem[i].style.transition = '1s '+ (i*150) + 'ms';
            listItem[i].style.transform = 'rotateX(0)';
        }
        list.style.transform = 'rotateY(-40deg)';
    }
</script>
</body>
</html>